@import url('https://fonts.googleapis.com/css?family=Open+Sans&display=swap');

.body {
  background-color: rgba(155, 89, 182, 0.7);
  font-family: 'Open Sans', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100vw;
  margin: 0;

  .phone {
    position: relative;
    overflow: hidden;
    border: 3px solid #eee;
    border-radius: 15px;
    height: 600px;
    width: 340px;

    // img {
    //   width: 340px;
    //   height: 100%;
    //   object-fit: cover;
    // }

    .content {
      opacity: 0;
      object-fit: cover;
      position: absolute;
      top: 0;
      left: 0;
      height: calc(100% - 60px);
      width: 100%;
      transition: opacity 0.4s ease;

      &.show {
        opacity: 1;
      }
    }
  }

  nav {
    position: absolute;
    bottom: 0;
    left: 0;
    margin-top: -5px;
    width: 100%;

    ul {
      background-color: #fff;
      display: flex;
      list-style-type: none;
      padding: 0;
      margin: 0;
      height: 60px;

      li {
        color: #777;
        cursor: pointer;
        flex: 1;
        padding: 10px;
        text-align: center;

        &:hover,
        &.active {
          color: #8e44ad;
        }

        p {
          font-size: 12px;
          margin: 2px 0;
        }
      }
    }
  }
}